import request from '@/utils/request'

// 查询学生处分申请列表
export function listDisciplinaryApplication(query) {
  return request({
    url: '/routine/disciplinaryApplication/list',
    method: 'get',
    params: query
  })
}



// 查询学生处分申请列表
export function getStuList(query) {
  return request({
    url: '/routine/disciplinaryApplication/getStuList',
    method: 'get',
    params: query
  })
}

// 查询学生处分申请详细
export function getDisciplinaryApplication(applicationId) {
  return request({
    url: '/routine/disciplinaryApplication/' + applicationId,
    method: 'get'
  })
}

// 根据流程id查询学生请假申请详细
export function getDisciplinaryApplicationByProcInsId(procInsId) {
  return request({
    url: '/routine/disciplinaryApplication/getDisciplinaryApplicationByProcInsId/' + procInsId,
    method: 'get'
  })
}

// 新增学生处分申请
export function addDisciplinaryApplication(data) {
  return request({
    url: '/routine/disciplinaryApplication/add',
    method: 'post',
    data: data
  })
}

// 修改学生处分申请
export function updateDisciplinaryApplication(data) {
  return request({
    url: '/routine/disciplinaryApplication/update',
    method: 'post',
    data: data
  })
}

// 删除学生处分申请
export function delDisciplinaryApplication(applicationId) {
  return request({
    url: '/routine/disciplinaryApplication/' + applicationId,
    method: 'post'
  })
}

// 获取学生信息
export function getStuInfo(stuNo) {
  return request({
    url: '/routine/disciplinaryApplication/getStuInfo/'+stuNo,
    method: 'get'
  })
}

// 保存
export function save(data) {
  return request({
    url: '/routine/disciplinaryApplication/save',
    method: 'post',
    data: data
  })
}
